package com.xxk.rocket.star.manage;

public class StargateInstance {
  private StargateInstance() {
  }

  private static StargateInstance stargateInstance = new StargateInstance();

  private IStargateConsumeManage stargateConsumeManage;
  private IStargateProcessManage stargateProcessManage;

  public static StargateInstance getStargateInstance() {
    return stargateInstance;
  }

  public void init(IStargateProcessManage stargateProcessManage, IStargateConsumeManage stargateConsumeManage) {
    this.stargateProcessManage = stargateProcessManage;
    this.stargateConsumeManage = stargateConsumeManage;
  }

  public boolean isInit() {
    return this.stargateProcessManage != null || this.stargateConsumeManage != null;
  }

  public IStargateConsumeManage getStargateConsumeManage() {
    return stargateConsumeManage;
  }

  public IStargateProcessManage getStargateProcessManage() {
    return stargateProcessManage;
  }
}
